package lt.ntec.danblog.server.index;

import java.util.Random;
import javax.inject.Inject;
import lt.ntec.danblog.server.core.view.View;

public class Controller {

    @Inject
    private View view;

    public void indexAction() {
        Random generator = new Random();
        int r = generator.nextInt();
        view.setPart("gen", "My new blog. ID: " + r);
    }
}
